<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script>
        //任务一:显示打印的日期
        var date = new Date();
        document.write(date.getFullYear()+"年");
        document.write(date.getMonth()+"月");
        document.write(date.getDate()+"日"+"&nbsp;");
        document.write("星期"+date.getDay()+"&nbsp;");
        document.write(date.getHours()+"时");
        document.write(date.getMinutes()+"分");
        document.write(date.getSeconds()+"秒;");

        //任务二:计算平均数
        var sum =(87+81+97+76+74+94+90+76+64+76)/10;
        document.write("--班级平均数为:"+parseInt(sum));
    </script>
</body>
</html>